<?php
/**
 * 发票接口配置类
 *
 * @author xiayuanjun<xiayuanjun@shopex.cn>
 * wangjianjun update 20160623
 * @version 0.1
 */
class erpapi_invoice_config extends erpapi_config
{
    /**
     * 应用级参数
     *
     * @param String $method 请求方法
     * @param Array $params 业务级请求参数
     * @return void
     * @author 
     **/
    public function get_query_params($method, $params){
        $query_params = array(
            'app_id'       => 'ecos.ome',
            'method'       => $method,
            'date'         => date('Y-m-d H:i:s'),
            'format'       => 'json',
            'certi_id'     => base_certificate::certi_id(),
            'v'            => '1',
            'from_node_id' => base_shopnode::node_id('ome'),
            'to_node_id'   => $this->__channelObj->invoice['billing_shop_node_id'],
        );
        return $query_params;
    }
    
    private $__global_whitelist = array(
        EINVOICE_CREATEREQ,
        EINVOICE_CREATE_RESULT_GET,
        EINVOICE_DETAIL_UPLOAD,
        EINVOICE_URL_GET,
        EINVOICE_INVOICE_GET,
        EINVOICE_INVOICE_PREPARE,
    );
}